package com.xuetang9.t9.xinhuaxia.beans;

import javax.persistence.*;

@Table(name = "social_picture")
public class SocialPicture {
    /**
     * 帖子id
     */
    @Column(name = "p_id")
    private Integer pId;

    /**
     * 用户id
     */
    @Column(name = "p_userid")
    private Integer pUserid;

    /**
     * 图片路径
     */
    @Column(name = "p_photopath")
    private String pPhotopath;

    /**
     * 获取帖子id
     *
     * @return p_id - 帖子id
     */
    public Integer getpId() {
        return pId;
    }

    /**
     * 设置帖子id
     *
     * @param pId 帖子id
     */
    public void setpId(Integer pId) {
        this.pId = pId;
    }

    /**
     * 获取用户id
     *
     * @return p_userid - 用户id
     */
    public Integer getpUserid() {
        return pUserid;
    }

    /**
     * 设置用户id
     *
     * @param pUserid 用户id
     */
    public void setpUserid(Integer pUserid) {
        this.pUserid = pUserid;
    }

    /**
     * 获取图片路径
     *
     * @return p_photopath - 图片路径
     */
    public String getpPhotopath() {
        return pPhotopath;
    }

    /**
     * 设置图片路径
     *
     * @param pPhotopath 图片路径
     */
    public void setpPhotopath(String pPhotopath) {
        this.pPhotopath = pPhotopath;
    }
}